#include <stdio.h>
#include <math.h>
#define pi 3.14159
int main (void) {
	double a ,b ,c ,s ,area ,an ,anb;
	printf("Enter side 1 in cm :");
	scanf("%lf",&b);
	printf("Enter side2 in cm :");
	scanf("%lf",&c);
printf("Enter angle in degrees :");
scanf("%lf",&an);
anb=an/180*pi;
	a=sqrt(pow(b,2)+pow(c,2)-2*b*c*cos(anb));
	s=(a+b+c)/2;
area=sqrt(s*(s-a)*(s-b)*(s-c));
	printf("side 3 =%0.2fcm\n",a);
	printf("Area of the triangle = %0.2fcm^2",area);
return 0;	
}
